home *** CD-ROM | disk | FTP | other *** search
- /* Install TafelEd/2 */
-
- call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs';
- Call SysloadFuncs;
-
- /* Query for installation path */
-
- curdir = directory();
-
- Say 'Enter the directory you which to install TafelEd/2 into (C:\TafelEd)';
- Pull instdir;
-
- newdir = directory(instdir);
- if newdir <> instdir Then Do
- rc = SysMkDir(instdir);
- If rc > 0 Then Do
- Say 'Couldnt create the selected directory - 'instdir;
- Exit;
- End;
- End;
- newdir = directory(instdir);
-
- /* Copy the files to this directory */
- Say 'Copying the files';
- '@COPY 'curdir'\*.*'
-
- /* Create an object on the Desktop */
-
- say 'Creating TafelEd/2 program object';
- title = 'TafelEd/2';
- classname = 'WPProgram';
- location = '<WP_DESKTOP>';
- setup = 'EXENAME='instdir'\TAFELED.EXE;STARTUPDIR='instdir';ASSOCFILTER=*.TT';
- call SysCreateObject classname,title,location,setup,u;
-
- /* Completed */
-
- newdir = directory(curdir);
- say 'Done';
-